package web.reader;

/**
 * HTML Attributes:
 *   HTML elements can have attributes
 *   Attributes provide additional information about an element
 *   Attributes are always specified in the start tag
 *   Attributes come in name/value pairs like: name="value"
 * 
 * Example:
 *   HTML links are defined with the &lt; a &gt; tag. 
 *   The link address is specified in the href attribute:
 *   &lt; a href="http://www.w3schools.com" &gt; This is a link &lt; /a &gt;
 * 
 * @author Shimu
 * @date 16-Sep-2012
 */
public class HtmlAttribute {
    
    private final String name, value;
    
    public HtmlAttribute(String name, String value) {
        this.name = name;
        this.value = value;
    }

    /**
     * @return the name of the attribute
     */
    public String getName() {
        return name;
    }

    /**
     * @return the value of the attribute
     */
    public String getValue() {
        return value;
    }
    
    @Override
    public String toString() {
        return "Html Attribute: " + name + ", " + value;
    }
}
